package com.example.dto;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
@Data
public class CreateOrderRequest
{
    @NotBlank(message = "商品不能为空")
    private String goods;
    @NotNull(message = "订单金额")
    private BigDecimal price;
    /*
     * 投递的消息延迟时间
     */
    private long delaySeconds;
}
